package com.bdk.middle.rule.service;

import com.bdk.middle.common.result.ResultDO;
import com.bdk.middle.rule.api.domain.RewardRecordDO;
import com.bdk.middle.rule.api.query.RewardRecordQueryDO;
import com.bdk.middle.rule.core.entity.RewardRecordEntity;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Reagan
 * @since 2021-04-05
 */
public interface RewardRecordService extends IService<RewardRecordEntity> {

    /**
     * 添加奖励记录
     * @param domain 用户DO
     * @return ResultDO
     */
    public ResultDO add(RewardRecordDO domain);


    /**
     * 领取奖励
     * @param id
     * @param memberId
     * @return ResultDO
     */
    public ResultDO get(String id, String memberId);

    /**
     * 更新奖励领取状态
     * @param id
     * @param status
     * @return ResultDO
     */
    public ResultDO updateStatus(String id, int status);

    /**
     * 查找领取列表分页
     * @param query 查询DO
     * @return ResultDO
     */
    public ResultDO find(RewardRecordQueryDO query);

}
